<?php


namespace app\zmt\validate;


use think\Validate;

class NavValidate extends Validate
{
    protected $rule =[
        'title' => 'require',
        'url' => 'require',
    ];
    protected $message =[
        'title.require' =>'标题不能为空',
        'url.require' =>'跳转地址不能为空',
    ];
    protected $scene =[
        'add' =>['title','url'],
        'edit' =>['title'],
    ];
}